import * as ActionTypes from './ActionTypes';
import axios from 'axios';
import {message} from 'antd';

const initValues = {

    boxSelectPar: "bsp",

    // 主目录默认选中的菜单栏
    stateMenuMain: 'jcjk',


};


export default (state = initValues, action) => {
    switch (action.type) {

        case ActionTypes.menuItemChange:
            return {...state, stateMenuMain: action.key};
        case ActionTypes.subMenuItemChange:
            return {...state, stateMenuMain: action.key};

        //hwh TODO test
        case ActionTypes.boxStatisticState:
            return {
                ...state, boxSelectPar: action.data.boxSelectPar
            }

        default:
            return state;
    }
};
